package edu.fiu.cis.nursing.server.db;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

@SuppressWarnings("serial")
@Entity
@Table(name = "user_actions")
public class User implements Serializable {

	@Id
	@Column(name = "id", unique = true, nullable = false)
	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	@Column(name = "password")
	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	@Column(name = "cookie")
	public String getCookie() {
		return cookie;
	}

	public void setCookie(String cookie) {
		this.cookie = cookie;
	}

	@Column(name = "num_logins")
	public int getNumLogins() {
		return numLogins;
	}

	public void setNumLogins(int numLogins) {
		this.numLogins = numLogins;
	}

	@Column(name = "cookie_timestamp")
	public Date getCookieTimeStamp() {
		return cookieTimeStamp;
	}

	public void setCookieTimeStamp(Date cookieTimeStamp) {
		this.cookieTimeStamp = cookieTimeStamp;
	}

	private String email;
	private String password;
	private String cookie;
	private int numLogins;
	private Date cookieTimeStamp;

}
